package scf.demo.feign;

import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import scf.demo.dto.PayApplyDTO;
import scf.demo.dto.Response;

/**
 * @author Harry Lee
 * @since 2025/9/22 14:19
 */
@FeignClient(name = "demo", url = "${demo.url:}", path = "/web-ec/api/web/ec/sc/api", configuration = FeignConfig.class)
public interface DemoFeign {

    @PostMapping("/pay/apply/receive")
    Response<String> payApply(@RequestHeader("ProductId") String productId, @RequestBody @Valid PayApplyDTO payApplyDTO);

}
